package BehavioralMode.command.canteen;

import java.util.LinkedList;
import java.util.List;

public class Waiter {

     List<Order> orderList = new LinkedList<>();

     public void orderDishes(Order order){
         System.out.println("开始点菜");
         orderList.add(order);
     }

     public void Begantocooking(){
        orderList.forEach(order -> {
            order.cooking();
        });
     }



}
